Skip to content

Marco tradeoperador#2

Open
wesleyzilva wants to merge 65 commits intomainfrom
marco_Tradeoperador
Open

Marco tradeoperador#2
wesleyzilva wants to merge 65 commits intomainfrom
marco_Tradeoperador

Conversation

@wesleyzilva
Copy link
Copy Markdown
Owner

No description provided.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR, titled "Marco tradeoperador" (March trader framework), adds a large collection of trading system resources to the repository for the month of March 2026. It includes new ProfitChart (NTSL) visual indicator scripts organized by priority, backtest result data from a suite of ~50 IFR/RSI robot strategies, theoretical study documents, and a VS Code settings file.

Changes:

  • Adds 5 new marco2026_IFR_top5 visual coloring indicators (RSI-based, various timeframes and filters) with asymmetric/hybrid exit levels
  • Adds ~15 new fev_* visual indicator scripts (VWAP, VSA, moving average, OBV, divergence, breakout, etc.) and backtest robot strategy files
  • Adds educational/theoretical markdown documents, backtest CSV result files, and a VS Code workspace settings file

Reviewed changes

Copilot reviewed 105 out of 206 changed files in this pull request and generated 12 comments.

Show a summary per file
File Description
profit_estudos_cores/marco2026_IFR_top5/*.ntsl.txt 5 new visual coloring indicators (IFR-based, prioritized #1–#5) for chart bar painting
profit_estudos_cores/fev_*.txt ~14 new bar-coloring indicator scripts using VWAP, VSA, moving averages, OBV, ATR, etc.
automacao_backtests/IFR_RSI/*.txt NTSL strategy robot scripts (v10–v50 variations), most marked as approved or reprovado
automacao_backtests/IFR_RSI/resultadosAprovadosPorTimeframe/*.csv Backtest result exports from ProfitChart, including real personal/account data
automacao_backtests/IFR_RSI/catalogo_50_opcoes_IFR.txt Catalog of 50 IFR strategy variants and methodology notes
automacao_backtests/IFR_RSI/resultadosAprovadosPorTimeframe/ranking_melhores_ate_momento.txt Compiled ranking of best-performing robots by timeframe
estudo_teorias/*.md Educational markdown documents on trading theory (IFR, MACD, Renko, Dow, risk management, etc.)
automacao_backtests/NeologicaProfitAPIbacktest.txt A conversational question committed as a file (no code value)
estudo_teorias/0326_diarioDeBordo.md Empty placeholder file with only dashes
.vscode/settings.json VS Code workspace settings with a hardcoded machine-specific Python path

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +44 to +47
else if bSaida then
begin
PaintBar(cSaida);
end
Copy link

Copilot AI Mar 3, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In mar_IFR_01_v6_60min_saida_hibrida.ntsl.txt, the bSaida exit zone (IFR between 48 and 52) is checked after bCompra and bVenda, but the exit block when bSaida is true (lines 44-47) calls PaintBar(cSaida) but does NOT call PlotText to add a label. This is inconsistent with bCompra and bVenda blocks which do add PlotText when MostrarTexto is true. If this is intentional, a comment would clarify it; otherwise, a text label such as "V6 60 SAIDA" should be added for consistency with the other signal blocks.

Copilot uses AI. Check for mistakes.
@@ -0,0 +1,7 @@
{
"python.defaultInterpreterPath": "C:/Users/zilva/AppData/Local/Programs/Python/Python312/python.exe",
Copy link

Copilot AI Mar 3, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The .vscode/settings.json file contains a hardcoded absolute path to a specific user's Python interpreter (C:/Users/zilva/AppData/Local/Programs/Python/Python312/python.exe). This is a machine-specific and user-specific path that will not work on any other developer's machine. Additionally, this file should generally not be committed to version control as it contains personal configuration. The path also reveals a local username ("zilva"), which is a minor privacy concern. Consider adding .vscode/settings.json to .gitignore or replacing the hardcoded path with a relative or workspace-relative path.

Suggested change
"python.defaultInterpreterPath": "C:/Users/zilva/AppData/Local/Programs/Python/Python312/python.exe",
"python.defaultInterpreterPath": "${workspaceFolder}/.venv/Scripts/python.exe",

Copilot uses AI. Check for mistakes.
Comment on lines +25 to +28
corShakeout := RGB(0, 255, 0); // Verde (Sinal de Compra VSA)
corUpthrust := RGB(255, 0, 0); // Vermelho (Sinal de Venda VSA)
corCyan := RGB(0, 255, 0); // Verde (Compra Extrema/Clímax)
corFuchsia := RGB(255, 0, 0); // Vermelho (Venda Extrema/Clímax)
Copy link

Copilot AI Mar 3, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In fev_VSAassinaturaInstitucional.txt, corCyan and corFuchsia are assigned the exact same RGB values as corShakeout and corUpthrust respectively:

  • corShakeout := RGB(0, 255, 0) (Green)
  • corCyan := RGB(0, 255, 0) (also Green — should be Cyan, i.e. RGB(0, 255, 255))
  • corUpthrust := RGB(255, 0, 0) (Red)
  • corFuchsia := RGB(255, 0, 0) (also Red — should be Fuchsia/Magenta, i.e. RGB(255, 0, 255))

The comments say "Ciano (Compra Extrema/Clímax)" and "Fúcsia (Venda Extrema/Clímax)", but the actual colors assigned are the same as the standard signals, making it impossible to visually distinguish "Volume Extremo" signals from standard ones. The Cyan color should be RGB(0, 255, 255) and the Fuchsia/Magenta color should be RGB(255, 0, 255).

Copilot uses AI. Check for mistakes.
Comment on lines +31 to +32
// Cálculo da Volatilidade (Usando Summation/Soma para contornar erro de nome da funcao Average)
vATR := Summation(High - Low, PeriodoATR) / PeriodoATR;
Copy link

Copilot AI Mar 3, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In fev_ATRmovimentoDoPrecoComVontade.txt, the ATR is computed as a simple average of the bar range (High - Low) using Summation / PeriodoATR. This is not a true ATR (Average True Range), which should use the True Range — defined as Max(High - Low, Abs(High - Close[1]), Abs(Low - Close[1])). Using only High - Low will underestimate volatility on days with gaps. The comment on line 31 acknowledges workarounds but the result is a misnamed and functionally different indicator. The variable and the function name FatorVolatilidade imply ATR semantics, which could mislead users of this indicator.

Copilot uses AI. Check for mistakes.
Comment on lines +30 to +36
iHoraHHMM := Time;
if iHoraHHMM > 2400 then
iHoraHHMM := Round(iHoraHHMM / 100);

iHoraAberturaFimHHMM := HoraAberturaFim;
if iHoraAberturaFimHHMM > 2400 then
iHoraAberturaFimHHMM := Round(iHoraAberturaFimHHMM / 100);
Copy link

Copilot AI Mar 3, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In mar_IFR_03_v45_60min_volume_horario.ntsl.txt, the time format conversion logic has a potential issue. The check if iHoraHHMM > 2400 then iHoraHHMM := Round(iHoraHHMM / 100) is designed to handle times in HHMMSS format (e.g., 103000), but the division by 100 would yield 1030 (correct), yet a time like 235959 would yield 2359, which is a valid HHMM time. However, the input HoraAberturaFim defaults to 103000, which is in HHMMSS format (6 digits), but after the conversion it becomes 1030. The regular Time function in NTSL typically returns HHMM (4 digits) for intraday candles. If Time already returns HHMM format (e.g., 1030), the check > 2400 would never be true for normal session times (max HHMM is 2359), but the HoraAberturaFim default of 103000 (6 digits, HHMMSS) would incorrectly be compared against the 4-digit HHMM time format without conversion. This asymmetry means the condition on line 41 (iHoraHHMM <= iHoraAberturaFimHHMM) would compare HHMM against HHMMSS until the conversion kicks in. The check should be consistent, and the default value should match the expected format.

Copilot uses AI. Check for mistakes.

// --- CÁLCULOS ---
// 1. Média Móvel Simples do Volume (Quantity é o volume no NTSL)
avgVolume := Media(Quantity, volPeriod);
Copy link

Copilot AI Mar 3, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In fev_VSAassinaturaInstitucional.txt, the Media function is being called with arguments in the wrong order. The standard NTSL signature for Media is Media(Periodo, Serie), but here it is called as Media(Quantity, volPeriod) — the volume quantity series is passed as the first argument (period) and the integer period as the second argument (series). This will produce incorrect results or a runtime error. It should be Media(volPeriod, Quantity).

Copilot uses AI. Check for mistakes.
Comment on lines +34 to +36
else if (iHora >= 17) and (iMinuto >= 50) then
begin
SetChartColor(cCorPerigo);
Copy link

Copilot AI Mar 3, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In fev_HorarioTurbulencia.txt, the condition for Zone 3 (closing/auction, line 34) is logically incorrect. The condition (iHora >= 17) and (iMinuto >= 50) will trigger for any time where the hour is 18 or 19 (regardless of minutes), because when iHora > 17, iMinuto can be any value from 0 to 59 — the minutes condition is not just applied to hour 17. The correct condition should be (iHora > 17) or ((iHora = 17) and (iMinuto >= 50)) to properly capture all times from 17:50 onwards.

Copilot uses AI. Check for mistakes.
@@ -0,0 +1 @@
da para eu usar uma API para buscar os resultados de operação da neologica para o Profit? queria também os dados do price action historico para estudos dos ultimos 3 anos.
Copy link

Copilot AI Mar 3, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In automacao_backtests/NeologicaProfitAPIbacktest.txt, the file contains a plain conversational question ("da para eu usar uma API para buscar os resultados de operação da neologica para o Profit?...") rather than any code, configuration, or documentation. This should not be committed to the repository as it has no technical value and will be confusing to future maintainers.

Copilot uses AI. Check for mistakes.
Comment on lines +1 to +18
-----------------------------
-----------------------------
-----------------------------
-----------------------------
-----------------------------
-----------------------------
-----------------------------
-----------------------------
-----------------------------
-----------------------------
-----------------------------
-----------------------------
-----------------------------
-----------------------------
-----------------------------
-----------------------------
-----------------------------
-----------------------------
Copy link

Copilot AI Mar 3, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The file estudo_teorias/0326_diarioDeBordo.md contains only 18 lines of dashes (-----------------------------) with no actual content. This appears to be an empty placeholder that was committed unintentionally. It provides no value to the repository and should either be filled with content or removed before merging.

Copilot uses AI. Check for mistakes.
Comment on lines +37 to +39
// Garante que o primeiro candle seja visualmente Cinza (Neutro)
if (Date <> Date[1]) then
PaintBar(corNeutra);
Copy link

Copilot AI Mar 3, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In fev_VWAPsemanalDiario.txt (line 38), the comment says "Garante que o primeiro candle seja visualmente Cinza (Neutro)" using the condition if (Date <> Date[1]) then PaintBar(corNeutra). However, this condition is true for ALL first candles of EACH new day, not just the very first candle of the entire chart. This means the first candle of every trading day will be painted neutral gray, overriding any buy/sell signal that might have been correctly identified for the first candle of the day. This is likely intentional behavior (avoiding signals on the first bar), but the comment is misleading — it says "primeiro candle" (first candle) but it affects the first candle of every day.

Copilot uses AI. Check for mistakes.
wesleyzilva and others added 30 commits March 7, 2026 16:52
…ade-dir, ADX, div-pivo, pullback-MME200, regime balanceado
…, golden/death cross); MQL5: IFR_01-02 e MED_01-02 para XAUUSD e NAS100
…me, reprovados, README convencao nomenclatura
…a novos robos: PPV_05, ST_05, 5M1_01-05, BRK_01-05, DDZ_01-05, DC_01-05, HOR_01-05, LAB_01-02
…-05, TND_01-05, VWP_01-05, TFM_01-05; estrutura timeframeMenor
…inal)

- .ntsl.txt  .ntsl em todos os arquivos de documentacao
- codigo_fonte/  ntsl/ em todos os grupos e LABORATORIO_INDICADORES
- Estrutura de pastas atualizada: ntsl/, mql5/, resultsBackTestTimeframe/, reprovados/
- README.md e MAPA_GRUPOS.md: tabelas de grupos e convencoes atualizadas
- Catalogo CANDLE1: nomenclatura corrigida (timeframe no final)
- IFR_RSI legado/README.md: caminho atualizado para ../ntsl/
- OrientacoesWorkspace.md: referencias atualizadas
- NTSL (143 arquivos): Print('Robo ativo: nome') na primeira barra do begin
- MQL5 (10 arquivos): Print EA iniciado no OnInit() + comment com nome do robo em todas as chamadas trade.Buy/Sell
- copilot-instructions.md: secao 'Identificacao de Ordens e Rastreabilidade' adicionada como regra obrigatoria
- Adicionado begin/end onde faltava
- Corrigido blocos incompletos
- Corrigidas funções sem parêntese final
- ATR inválido substituído por MME
- Removidos conflitos de merge
- Padronização geral para evitar erros de compilação no Profit
…gração com outros indicadores para day trade B3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants